package com.tianya.domain.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum CourseStatus {
    OPEN(1, "开课"),
    CLOSE(2, "结课"),
    DELETED(3, "已删除");

    @EnumValue
    private Integer code;
    private String message;

    CourseStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}